package com.zhiyin.seal.service.impl;

import com.zhiyin.seal.dao.FeedbackDao;
import com.zhiyin.seal.entity.FeedbackEntity;
import com.zhiyin.seal.entity.bo.FeedbackBo;
import com.zhiyin.seal.service.FeedbackService;
import com.zhiyin.seal.util.BeanUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class FeedbackServiceImpl implements FeedbackService {

    @Autowired
    FeedbackDao feedbackDao;

    @Override
    public Boolean save(FeedbackBo feedbackBo) {
        return feedbackDao.insertFeedback(BeanUtil.copy(feedbackBo, FeedbackEntity.class)) > 0;
    }
}
